
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>anaconda的使用 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="python3.6.4下载与安装.html" />
    
    
    <link rel="prev" href="anaconda下载与使用.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        <li class="header">笔记</li>
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../阶段一笔记/1.操作系统——特殊的软件.html">
            
                <a href="../阶段一笔记/1.操作系统——特殊的软件.html">
            
                    
                    1.操作系统——特殊的软件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../阶段一笔记/2.命令.html">
            
                <a href="../阶段一笔记/2.命令.html">
            
                    
                    2.命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../阶段一笔记/3.SSH客户端的简单使用.html">
            
                <a href="../阶段一笔记/3.SSH客户端的简单使用.html">
            
                    
                    3.SSH客户端的简单使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../阶段一笔记/4.用户权限相关命令.html">
            
                <a href="../阶段一笔记/4.用户权限相关命令.html">
            
                    
                    4.用户权限相关命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../阶段一笔记/5.系统信息相关命令.html">
            
                <a href="../阶段一笔记/5.系统信息相关命令.html">
            
                    
                    5.系统信息相关命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../阶段一笔记/6.vi命令.html">
            
                <a href="../阶段一笔记/6.vi命令.html">
            
                    
                    6.vi命令
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">软件安装及其使用</li>
        
        
    

    
        
        <li class="header">pycharm</li>
        
        
    
        <li class="chapter " data-level="3.1" data-path="pycharm安装及配置.html">
            
                <a href="pycharm安装及配置.html">
            
                    
                    pycharm安装及配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="pycharm使用.html">
            
                <a href="pycharm使用.html">
            
                    
                    pycharm使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="pycharm激活问题.html">
            
                <a href="pycharm激活问题.html">
            
                    
                    pycharm激活问题
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">电子书搭建</li>
        
        
    
        <li class="chapter " data-level="4.1" data-path="gitbook安装.html">
            
                <a href="gitbook安装.html">
            
                    
                    gitbook安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2" >
            
                <span>
            
                    
                    git
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.2.1" data-path="git简要.html">
            
                <a href="git简要.html">
            
                    
                    git简要
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.2" data-path="git安装及使用.html">
            
                <a href="git安装及使用.html">
            
                    
                    git安装及使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.3" data-path="git分支管理.html">
            
                <a href="git分支管理.html">
            
                    
                    git分支管理
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.3" data-path="github使用.html">
            
                <a href="github使用.html">
            
                    
                    github使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.4" data-path="../搭建/gitee远程仓库搭建.html">
            
                <a href="../搭建/gitee远程仓库搭建.html">
            
                    
                    gitee远程仓库搭建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.5" data-path="../搭建/客户端与服务端的搭建.html">
            
                <a href="../搭建/客户端与服务端的搭建.html">
            
                    
                    客户端与服务端的搭建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.6" >
            
                <span>
            
                    
                    问题
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.6.1" data-path="../搭建/gitbook build没有summary.html">
            
                <a href="../搭建/gitbook build没有summary.html">
            
                    
                    gitbook build没有summary
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.6.2" data-path="../问题/typora结合picgo实现上传图片到gitee.html">
            
                <a href="../问题/typora结合picgo实现上传图片到gitee.html">
            
                    
                    typora结合picgo实现上传图片到gitee
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="header">软件工具</li>
        
        
    
        <li class="chapter " data-level="5.1" data-path="anaconda下载与使用.html">
            
                <a href="anaconda下载与使用.html">
            
                    
                    anaconda下载与配置
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="5.2" data-path="anaconda的使用.html">
            
                <a href="anaconda的使用.html">
            
                    
                    anaconda的使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.3" data-path="python3.6.4下载与安装.html">
            
                <a href="python3.6.4下载与安装.html">
            
                    
                    python3.6.4下载与安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.4" data-path="typora安装及配置.html">
            
                <a href="typora安装及配置.html">
            
                    
                    typora安装及配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.5" data-path="ubuntu  tool安装.html">
            
                <a href="ubuntu  tool安装.html">
            
                    
                    ubuntu  tool安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.6" data-path="Jetbrains系列产品重置试用方法.html">
            
                <a href="Jetbrains系列产品重置试用方法.html">
            
                    
                    Jetbrains系列产品重置试用方法
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">python学习</li>
        
        
    

    
        
        <li class="header">面对过程</li>
        
        
    
        <li class="chapter " data-level="7.1" data-path="../python面对过程学习/0.python学习.html">
            
                <a href="../python面对过程学习/0.python学习.html">
            
                    
                    0.python学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.2" data-path="../python面对过程学习/1.python简介.html">
            
                <a href="../python面对过程学习/1.python简介.html">
            
                    
                    1.python简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.3" data-path="../python面对过程学习/2.python程序no.1.html">
            
                <a href="../python面对过程学习/2.python程序no.1.html">
            
                    
                    2.python程序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.4" data-path="../python面对过程学习/3.多文件项目的演练.html">
            
                <a href="../python面对过程学习/3.多文件项目的演练.html">
            
                    
                    3.多文件项目的演练
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.5" data-path="../python面对过程学习/4.程序注释.html">
            
                <a href="../python面对过程学习/4.程序注释.html">
            
                    
                    4.程序注释
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.6" data-path="../python面对过程学习/5.算数运算符.html">
            
                <a href="../python面对过程学习/5.算数运算符.html">
            
                    
                    5.算数运算符
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.7" data-path="../python面对过程学习/6.程序执行原理（科普）.html">
            
                <a href="../python面对过程学习/6.程序执行原理（科普）.html">
            
                    
                    6.程序执行原理（科普）
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.8" data-path="../python面对过程学习/7.变量的基本使用.html">
            
                <a href="../python面对过程学习/7.变量的基本使用.html">
            
                    
                    7.变量的基本使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.9" data-path="../python面对过程学习/8.变量的命名.html">
            
                <a href="../python面对过程学习/8.变量的命名.html">
            
                    
                    8.变量的命名
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.10" data-path="../python面对过程学习/9.判断（if）语句.html">
            
                <a href="../python面对过程学习/9.判断（if）语句.html">
            
                    
                    9.判断（if）语句
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.11" data-path="../python面对过程学习/10.运算符.html">
            
                <a href="../python面对过程学习/10.运算符.html">
            
                    
                    10.运算符.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.12" data-path="../python面对过程学习/11.循环.html">
            
                <a href="../python面对过程学习/11.循环.html">
            
                    
                    11.循环.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.13" data-path="../python面对过程学习/12.函数基础.html">
            
                <a href="../python面对过程学习/12.函数基础.html">
            
                    
                    12.函数基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.14" data-path="../python面对过程学习/13.高级变量类型.html">
            
                <a href="../python面对过程学习/13.高级变量类型.html">
            
                    
                    13.函数基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.15" data-path="../python面对过程学习/14.综合应用 —— 名片管理系统.html">
            
                <a href="../python面对过程学习/14.综合应用 —— 名片管理系统.html">
            
                    
                    14.综合应用 —— 名片管理系统
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.16" data-path="../python面对过程学习/15.变量进阶（理解）.html">
            
                <a href="../python面对过程学习/15.变量进阶（理解）.html">
            
                    
                    15.变量进阶（理解）
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.17" data-path="../python面对过程学习/16.函数进阶.html">
            
                <a href="../python面对过程学习/16.函数进阶.html">
            
                    
                    16.函数进阶
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">面对对象</li>
        
        
    
        <li class="chapter " data-level="8.1" data-path="../课余/编程exe.html">
            
                <a href="../课余/编程exe.html">
            
                    
                    编程exe
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">问题</li>
        
        
    
        <li class="chapter " data-level="9.1" data-path="../问题/安装软件.html">
            
                <a href="../问题/安装软件.html">
            
                    
                    安装软件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="9.2" data-path="../问题/激活码网站.html">
            
                <a href="../问题/激活码网站.html">
            
                    
                    激活码网站
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="9.3" data-path="../问题/虚拟机.html">
            
                <a href="../问题/虚拟机.html">
            
                    
                    虚拟机
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="9.4" data-path="../问题/疑难杂症.html">
            
                <a href="../问题/疑难杂症.html">
            
                    
                    疑难杂症
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >anaconda的使用</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="ubuntu&#x4E0B;anaconda&#x4F7F;&#x7528;&#x624B;&#x518C;">Ubuntu&#x4E0B;Anaconda&#x4F7F;&#x7528;&#x624B;&#x518C;</h1>
<ul>
<li>conda&#x6362;&#x6E90; <a href="https://link.zhihu.com/?target=https%3A//mirrors.tuna.tsinghua.edu.cn/help/anaconda/" target="_blank">&#x6E05;&#x534E;&#x5927;&#x5B66;&#x955C;&#x50CF;&#x7AD9;Anaconda&#x955C;&#x50CF;&#x4F7F;&#x7528;&#x5E2E;&#x52A9;</a></li>
</ul>
<pre><code class="lang-shell">conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
</code></pre>
<ul>
<li>&#x6DFB;&#x52A0;&#x4EE3;&#x7406;</li>
</ul>
<pre><code class="lang-shell">&#x7F16;&#x8F91;~/.condarc&#x6587;&#x4EF6;
&#x5982;&#x679C;&#x4F60;&#x7528;socks5&#x534F;&#x8BAE;&#x6302;&#x7684;&#x4EE3;&#x7406;&#x7684;&#x8BDD;
&#x6DFB;&#x52A0;&#x4E0B;&#x9762;&#x7684;&#x5185;&#x5BB9;

proxy_servers:
    http: socks5://127.0.0.1:1080
    https: socks5://127.0.0.1:1080

http&#x4EE3;&#x7406;&#x7C7B;&#x4F3C;

proxy_servers:
    http: http://127.0.0.1:1080
    https: https://127.0.0.1:1080
</code></pre>
<ul>
<li>&#x67E5;&#x770B;&#x73AF;&#x5883;</li>
</ul>
<pre><code class="lang-shell">conda env list
</code></pre>
<ul>
<li>&#x521B;&#x5EFA;&#x65B0;&#x73AF;&#x5883;</li>
</ul>
<pre><code class="lang-shell">conda create -n env_name python=x.x(&#x5982;3.6, 2.7&#x7B49;)
</code></pre>
<ul>
<li>&#x73AF;&#x5883;&#x5207;&#x6362;</li>
</ul>
<pre><code class="lang-shell">conda activate env_name
</code></pre>
<ul>
<li>&#x9000;&#x51FA;&#x5F53;&#x524D;&#x73AF;&#x5883;</li>
</ul>
<pre><code class="lang-shell">conda deactivate
</code></pre>
<ul>
<li>&#x5220;&#x9664;&#x73AF;&#x5883;</li>
</ul>
<pre><code class="lang-shell">conda remove -n env_name --all
</code></pre>
<ul>
<li>&#x5B89;&#x88C5;&#x65B0;&#x7684;&#x5305;</li>
</ul>
<pre><code class="lang-shell">conda install package_name
</code></pre>
<ul>
<li>&#x5378;&#x8F7D;&#x6307;&#x5B9A;&#x5305;</li>
</ul>
<pre><code class="lang-shell">conda uninstall package_name
</code></pre>
<ul>
<li>&#x66F4;&#x65B0;</li>
</ul>
<pre><code class="lang-shell">1. &#x66F4;&#x65B0;anaconda&#xFF1A;conda update anaconda
2. &#x66F4;&#x65B0;conda-build&#xFF1A;conda update conda-build
3. &#x66F4;&#x65B0;&#x5168;&#x90E8;&#xFF1A;conda update --all
</code></pre>
<ul>
<li><p>&#x56DE;&#x6EDA;</p>
<ul>
<li>&#x67E5;&#x8BE2;&#x4E4B;&#x524D;&#x66F4;&#x65B0;&#x7684;&#x7248;&#x672C;&#x8BB0;&#x5F55;</li>
</ul>
<pre><code class="lang-shell">conda list -r
</code></pre>
<ul>
<li>&#x9009;&#x62E9;&#x4E00;&#x4E2A;&#x4E4B;&#x524D;&#x7684;&#x7248;&#x672C;&#x8FDB;&#x884C;&#x56DE;&#x6EDA;</li>
</ul>
<pre><code class="lang-shell">conda install --revision &#x6570;&#x5B57;
</code></pre>
</li>
<li><p>&#x5F00;&#x53D1;&#x73AF;&#x5883;&#x5907;&#x4EFD; Anaconda&#x63D0;&#x4F9B;&#x4E86;&#x5907;&#x4EFD;&#x7684;&#x529F;&#x80FD;&#xFF0C;&#x53EF;&#x4EE5;&#x5C06;&#x5F53;&#x524D;&#x7684;&#x73AF;&#x5883;&#x5907;&#x4EFD;&#x6210;&#x4E00;&#x4E2A;.yml&#x6587;&#x4EF6;&#xFF0C;&#x4E4B;&#x540E;&#x521B;&#x5EFA;&#x73AF;&#x5883;&#x7684;&#x65F6;&#x5019;&#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x4F9D;&#x636E;&#x8FD9;&#x4E2A;&#x6587;&#x4EF6;&#x521B;&#x5EFA;</p>
</li>
</ul>
<pre><code class="lang-shell">conda env export -n my-environment -f my-environment.yml
</code></pre>
<p>&#x6CE8;&#x610F;&#x5C06;<code>my-environment</code>&#x6539;&#x6210;&#x4F60;&#x81EA;&#x5DF1;&#x7684;&#x73AF;&#x5883;&#x540D;&#x54E6;</p>
<p>&#x65B0;&#x5EFA;&#x73AF;&#x5883;&#x7684;&#x65F6;&#x5019;</p>
<pre><code class="lang-shell">conda env create -f my-environment.yaml
</code></pre>
<h3 id="&#x56FE;&#x5F62;&#x5316;&#x754C;&#x9762;&#x4E0B;">&#x56FE;&#x5F62;&#x5316;&#x754C;&#x9762;&#x4E0B;</h3>
<p>ubuntu&#x4E0B;&#x5B89;&#x88C5;anaconda&#x540E;&#xFF0C;anaconda-navigator&#x53EA;&#x80FD;&#x5728;&#x7EC8;&#x7AEF;&#x91CC;&#x8F93;&#x5165;</p>
<pre><code class="lang-shell">anaconda-navigator
</code></pre>
<p>&#x4E3A;&#x4E86;&#x50CF;&#x5176;&#x4ED6;application&#x4E00;&#x6837;&#x53EF;&#x4EE5;&#x5355;&#x51FB;&#x56FE;&#x6807;&#x542F;&#x52A8;&#xFF0C;&#x4F60;&#x9700;&#x8981;&#x8FD9;&#x6837;&#x505A;</p>
<ol>
<li>&#x8FDB;&#x5165;<code>/usr/share/applications/</code>&#x6587;&#x4EF6;&#x5939;</li>
<li>&#x65B0;&#x5EFA;<code>anaconda.desktop</code>&#x6587;&#x4EF6;</li>
<li>&#x5C06;&#x4E0B;&#x9762;&#x7684;&#x5185;&#x5BB9;&#x590D;&#x5236;&#x5230;&#x7B2C;&#x4E8C;&#x6B65;&#x5EFA;&#x7684;&#x6587;&#x4EF6;&#x4E2D;&#xFF0C;&#x4FDD;&#x5B58;</li>
</ol>
<pre><code class="lang-shell">[Desktop Entry]
Name=Anaconda
Version=5.3.1
Type=Application
Exec=/home/username/anaconda3/bin/anaconda-navigator
Icon=/home/username/anaconda3/pkgs/anaconda-navigator-1.9.7-py37_0/lib/python3.7/site-packages/anaconda_navigator/static/images/anaconda.png
Terminal=false
StartupNotify=true
</code></pre>
<p><strong>&#x6CE8;&#x610F;&#xFF1A;</strong> &#x5C06;<code>Exec</code>&#x548C;<code>Icon</code>&#x4E2D;&#x7684;<code>username</code>&#x66FF;&#x6362;&#x6210;&#x4F60;&#x81EA;&#x5DF1;&#x7684;&#x7528;&#x6237;&#x540D;&#xFF0C;<code>Icon</code>&#x662F;anaconda&#x56FE;&#x6807;&#x7684;&#x4F4D;&#x7F6E;&#xFF0C;&#x53EF;&#x4EE5;&#x6839;&#x636E; &#x4E0B;&#x9762;&#x8FD9;&#x6761;&#x547D;&#x4EE4;&#x6765;&#x67E5;&#x627E;&#x5177;&#x4F53;&#x8DEF;&#x5F84;&#xFF1A;</p>
<pre><code class="lang-shell">sudo find -name &apos;ana*.png&apos;
</code></pre>
<h3 id="jupyter-notebook&#x5DE5;&#x4F5C;&#x76EE;&#x5F55;">Jupyter notebook&#x5DE5;&#x4F5C;&#x76EE;&#x5F55;</h3>
<p>&#x751F;&#x6210;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</p>
<pre><code class="lang-shell">jupyter notebook --generate-config
</code></pre>
<p>&#x6253;&#x5F00;&#x751F;&#x6210;&#x7684;&#x6587;&#x4EF6;&#xFF0C;&#x4FEE;&#x6539;&#x4E0B;&#x9762;&#x7684;&#x8BED;&#x53E5;</p>
<pre><code class="lang-shell">c.NotebookApp.notebook_dir = &apos;/your/dir/&apos;
</code></pre>
<blockquote>
<ul>
<li><h2 id="conda">conda</h2>
</li>
<li><h3 id="&#x4ECB;&#x7ECD;">&#x4ECB;&#x7ECD;</h3>
<p>conda&#x662F;&#x4E00;&#x4E2A;&#x5305;&#x548C;&#x73AF;&#x5883;&#x7BA1;&#x7406;&#x5668;&#xFF0C;&#x4F60;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;conda&#x6765;&#x5206;&#x5272;&#x4E0D;&#x540C;&#x7684;python&#x7248;&#x672C;&#x4EE5;&#x53CA;&#x5176;&#x4E2D;&#x6240;&#x5B89;&#x88C5;&#x7684;&#x8F6F;&#x4EF6;&#x5305;&#xFF0C;&#x5E76;&#x5C06;&#x4ED6;&#x4EEC;&#x6253;&#x5305;&#x6210;&#x4E00;&#x4E2A;&#x4E2A;&#x4E0D;&#x540C;&#x7684;&#x73AF;&#x5883;&#xFF0C;&#x53EF;&#x4F9B;&#x8C03;&#x7528;</p>
</li>
<li><h3 id="anconda-&#x548C;-miniconda">Anconda &#x548C; Miniconda</h3>
<p>&#x4E24;&#x8005;&#x90FD;&#x662F;&#x57FA;&#x4E8E;conda&#x7684;&#x5305;&#x7BA1;&#x7406;&#x5DE5;&#x5177;&#xFF0C;&#x770B;&#x540D;&#x5B57;&#x5C31;&#x53EF;&#x4EE5;&#x770B;&#x51FA;&#x6765;&#xFF0C;mini&#x662F;&#x7CBE;&#x7B80;&#x7248;&#xFF0C;&#x6240;&#x6709;&#x7A0B;&#x5E8F;&#x5305;&#x90FD;&#x9700;&#x8981;&#x81EA;&#x5DF1;&#x5B89;&#x88C5;&#xFF1B;An&#x662F;&#x5185;&#x542B;&#x6709;&#x4E00;&#x4E9B;&#x7528;&#x5F97;&#x5230;&#x7684;&#x57FA;&#x7840;&#x5305;&#xFF08;&#x5B83;&#x8BA4;&#x4E3A;&#x4F60;&#x80FD;&#x7528;&#x5230;&#x7684;&#xFF09;</p>
<p>&#x4E2A;&#x4EBA;&#x63A8;&#x8350;&#x5B89;&#x88C5;miniconda&#xFF0C;&#x53EF;&#x4EE5;&#x81EA;&#x5DF1;&#x968F;&#x610F;&#x5B9A;&#x5236;&#x73AF;&#x5883;</p>
<p><strong><em>&#x5728; Windows &#x4E0A;&#xFF0C;&#x4F1A;&#x968F; Anaconda &#x4E00;&#x8D77;&#x5B89;&#x88C5;&#x4E00;&#x6279;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#xFF1A;</em></strong></p>
<ul>
<li><p>Anaconda Navigator&#xFF0C;&#x5B83;&#x662F;&#x7528;&#x4E8E;&#x7BA1;&#x7406;&#x73AF;&#x5883;&#x548C;&#x5305;&#x7684; GUI</p>
</li>
<li><p>Anaconda Prompt &#x7EC8;&#x7AEF;&#xFF0C;&#x5B83;&#x53EF;&#x8BA9;&#x4F60;&#x4F7F;&#x7528;&#x547D;&#x4EE4;&#x884C;&#x754C;&#x9762;&#x6765;&#x7BA1;&#x7406;&#x73AF;&#x5883;&#x548C;&#x5305;</p>
</li>
<li><p>Spyder&#xFF0C;&#x5B83;&#x662F;&#x9762;&#x5411;&#x79D1;&#x5B66;&#x5F00;&#x53D1;&#x7684; IDE</p>
</li>
</ul>
</li>
<li><h3 id="install">install</h3>
<p>conda&#x6B63;&#x5982;pip&#xFF0C;&#x90FD;&#x662F;&#x5305;&#x7BA1;&#x7406;&#x5DE5;&#x5177;&#xFF0C;&#x6240;&#x4EE5;&#x4E5F;&#x5E94;&#x8BE5;&#x6709;&#x4E00;&#x4E2A;&#x8F6F;&#x4EF6;&#x6E90;&#xFF0C;&#x5B89;&#x88C5;&#x597D;conda&#x540E;&#x7684;&#x7B2C;&#x4E00;&#x4EF6;&#x4E8B;&#x5C31;&#x662F;&#x66F4;&#x65B0;&#x6E90;</p>
<p><strong><em>&#x6E05;&#x534E;&#x6E90;</em></strong></p>
<pre><code class="lang-shell">conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
#&#x6700;&#x540E;&#x8FDB;&#x884C;&#x66F4;&#x65B0;
conda upgrade --all
</code></pre>
</li>
<li><h3 id="package-mangement">Package mangement</h3>
<p>&#x4F5C;&#x4E3A;&#x4E00;&#x4E2A;&#x5305;&#x7BA1;&#x7406;&#x5DE5;&#x5177;&#xFF0C;conda&#x7684;&#x7528;&#x6CD5;&#x6BD4;&#x8F83;&#x50CF;apt-get</p>
<p>&#x5B89;&#x88C5;&#x5305;</p>
<pre><code class="lang-shell">conda install (packagename1)[==version] (packagename1+n)[==version]
</code></pre>
<p>&#x79FB;&#x9664;&#x5305;</p>
<pre><code class="lang-shell">conda remove/uninstall (packagename1)[==version] (packagename1+n)[==version]
</code></pre>
<p>&#x67E5;&#x8BE2;&#x5305;</p>
<pre><code class="lang-shell">conda search (packagename)
</code></pre>
<p>&#x67E5;&#x770B;&#x5F53;&#x524D;&#x73AF;&#x5883;&#x4E0B;&#x5DF2;&#x5B89;&#x88C5;&#x7684;&#x5305;</p>
<pre><code class="lang-shell">conda list
</code></pre>
<p>&#x66F4;&#x65B0;&#x5305;</p>
<pre><code class="lang-shell">#&#x66F4;&#x65B0;python&#x7684;&#x62D3;&#x5C55;&#x5305;
conda update (packagename)
#&#x66F4;&#x65B0;conda&#x672C;&#x8EAB;&#x7684;&#x5143;&#x6570;&#x636E;&#x5305;
conda update conda
conda update anaconda
</code></pre>
<p>&#x4F46;&#x522B;&#x5FD8;&#x4E86;conda&#x5BF9;&#x4E8E;python&#x7684;&#x7279;&#x6B8A;&#x4F5C;&#x7528;&#xFF0C;&#x6784;&#x5EFA;&#x865A;&#x62DF;&#x73AF;&#x5883;</p>
<p>&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x65B0;&#x7684;&#x865A;&#x62DF;&#x73AF;&#x5883;</p>
<pre><code class="lang-shell">conda create -n (env_name)
conda create --name (env_name)
#&#x5728;conda&#x4E2D;&#x521B;&#x5EFA;&#x865A;&#x62DF;&#x73AF;&#x5883;&#x65F6;&#x53EF;&#x4EE5;&#x6307;&#x5B9A;python&#x7248;&#x672C;
conda create --name py39 python=3.9
#&#x4F7F;&#x7528;&#x7279;&#x5B9A;&#x5305;&#x6765;&#x521B;&#x5EFA;&#x73AF;&#x5883;
conda create -n bs beautifulsoup4
</code></pre>
<p>&#x521B;&#x5EFA;&#x5B8C;&#x865A;&#x62DF;&#x73AF;&#x5883;&#xFF0C;&#x5FC5;&#x987B;&#x542F;&#x7528;&#x624D;&#x80FD;&#x591F;&#x4F7F;&#x5176;&#x751F;&#x6548;</p>
<pre><code class="lang-shell">#start
conda activate env_name
#stop
conda deactivate env_name
#info,&#x5F53;&#x524D;&#x73AF;&#x5883;&#x4F1A;&#x7528; * &#x6807;&#x51FA;
conda info -envs
</code></pre>
<p>&#x865A;&#x62DF;&#x73AF;&#x5883;&#x7BA1;&#x7406;</p>
<pre><code class="lang-shell">#&#x67E5;&#x770B;&#x865A;&#x62DF;&#x73AF;&#x5883;&#x5217;&#x8868;
conda env list
#&#x67E5;&#x770B;&#x67D0;&#x4E2A;&#x73AF;&#x5883;&#x7684;&#x5305;&#x5217;&#x8868;
conda list -n env_name
#&#x5B89;&#x88C5;/&#x5220;&#x9664;&#x67D0;&#x4E2A;&#x7279;&#x5B9A;&#x73AF;&#x5883;&#x4E2D;&#x7684;&#x6307;&#x5B9A;&#x5305;
conda install/remove -n env_name packagename
#&#x5220;&#x9664;&#x6574;&#x4E2A;&#x73AF;&#x5883;
conda remove -n env_name
</code></pre>
<p><strong><em>&#x5728;Windows&#x7EC8;&#x7AEF;&#x4E2D;&#x4F7F;&#x7528;cmd&#x53EF;&#x4EE5;&#x6B63;&#x5E38;&#x5207;&#x6362;&#x73AF;&#x5883;&#xFF0C;&#x4F46;&#x5728;ps&#x4E2D;&#x5374;&#x56E0;&#x4E3A;&#x7F3A;&#x5C11;&#x73AF;&#x5883;&#x4F9D;&#x8D56;&#x800C;&#x4E0D;&#x80FD;&#x6B63;&#x786E;&#x914D;&#x7F6E;</em></strong></p>
<p>&#x89E3;&#x51B3;&#x7684;&#x65B9;&#x6CD5;&#xFF1A;</p>
<pre><code class="lang-shell">#&#x5B89;&#x88C5;&#x4F9D;&#x8D56;
conda install -n root -c pscondaenvs pscondaenvs
</code></pre>
</li>
</ul>
</blockquote>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="anaconda下载与使用.html" class="navigation navigation-prev " aria-label="Previous page: anaconda下载与配置">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="python3.6.4下载与安装.html" class="navigation navigation-next " aria-label="Next page: python3.6.4下载与安装">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"anaconda的使用","level":"5.2","depth":1,"next":{"title":"python3.6.4下载与安装","level":"5.3","depth":1,"path":"阶段二笔记/python3.6.4下载与安装.md","ref":"./阶段二笔记/python3.6.4下载与安装.md","articles":[]},"previous":{"title":"anaconda下载与配置","level":"5.1","depth":1,"path":"阶段二笔记/anaconda下载与使用.md","ref":"./阶段二笔记/anaconda下载与使用.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"阶段二笔记/anaconda的使用.md","mtime":"2022-01-10T16:19:03.059Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-03-24T13:44:59.630Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

